<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Mini\UserController;
use App\Http\Controllers\Mini\TeacherCourseController;
use App\Http\Controllers\Mini\TeacherController;
use App\Http\Controllers\Mini\TeacherCountController;
use App\Http\Controllers\Mini\StudentCourseController;
use App\Http\Controllers\Mini\StudentController;

Route::post('/user/bind-wx', [UserController::class, 'bindWX'])->name('MiniBindWX');
Route::post('/user/login', [UserController::class, 'login'])->name('MiniLogin');

Route::any('/teacher/courses', [TeacherCourseController::class, 'courses']);
Route::any('/teacher/course/info', [TeacherCourseController::class, 'info']);
Route::post('/teacher/course/sign', [TeacherCourseController::class, 'sign']);
Route::post('/teacher/course/sign-list', [TeacherCourseController::class,'signList']);

Route::get('/teacher/info', [TeacherController::class, 'info']);
Route::get('/teacher/list', [TeacherController::class, 'list'])->name('MiniTeacherList');
Route::post('/teacher/edit', [TeacherController::class, 'edit']);

Route::get('/teacher/count/month-commission', [TeacherCountController::class, 'month_commission']);

Route::get("/student/search", [StudentController::class, 'search']);


// 学生端
Route::any('/student/course/list', [StudentCourseController::class, 'list']);
Route::any('/student/course/detail', [StudentCourseController::class, 'detail']);
Route::any('/student/course/signs', [StudentCourseController::class, 'signs']);
